package test01springboot.demo.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;


import test01springboot.demo.dao.ProductMapper;
import test01springboot.demo.dao.TakeoutMapper;
import test01springboot.demo.entity.Takeout;

@Service("takeoutServie")
public class TakeoutServieImpl implements TakeoutServie {
	@Resource
	private TakeoutMapper takeoutMapper;
	@Resource
	private ProductMapper productMapper;


	public int addProduct(Takeout takeout) {
		int sum = takeoutMapper.addProduct(takeout);
		return sum;
	}

	@Override
	public int updateProduct(Integer quntity) {
		
		return 0;
	}

}
